home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Music / PLAY / superplay-lib / SuperPlay / SuperPlay.h < prev    next >
C/C++ Source or Header  |  1995-08-23  |  4KB  |  158 lines

  1.  
  2.  /* SuperPlay.h
  3.     - Include File for global functions and variables -
  4.     (c) 1994 by Andreas R. Kleinert
  5.     Last changes : 21.07.1994
  6.  */
  7.  
  8. #ifndef SUPERPLAY_H
  9. #define SUPERPLAY_H
  10.  
  11.  
  12. #ifndef INTUITION_INTUITION_H
  13. #include <intuition/intuitionbase.h>
  14. #endif /* INTUITION_INTUITION_H */
  15.  
  16. #ifndef EXEC_MEMORY_H
  17. #include <exec/memory.h>
  18. #endif /* EXEC_MEMORY_H */
  19.  
  20. #ifndef EXEC_LISTS_H
  21. #include <exec/lists.h>
  22. #endif /* EXEC_LISTS_H */
  23.  
  24. #ifndef GRAPHICS_GFXBASE_H
  25. #include <graphics/gfxbase.h>
  26. #endif /* GRAPHICS_GFXBASE_H */
  27.  
  28. #ifndef LIBRARIES_DOS_H
  29. #include <libraries/dos.h>
  30. #endif /* LIBRARIES_DOS_H */
  31.  
  32. #ifndef LIBRARIES_ASL_H
  33. #include <libraries/asl.h>
  34. #endif /* LIBRARIES_ASL_H */
  35.  
  36. #ifndef UTILITY_TAGITEM_H
  37. #include <utility/tagitem.h>
  38. #endif /* UTILITY_TAGITEM_H */
  39.  
  40. #ifndef _STDIO_H
  41. #include <stdio.h>
  42. #endif /* _STDIO_H */
  43.  
  44. #ifndef _STDLIB_H
  45. #include <stdlib.h>
  46. #endif /* _STDLIB_H */
  47.  
  48. #ifndef _STRING_H
  49. #include <string.h>
  50. #endif /* _STRING_H */
  51.  
  52. #ifndef _CTYPE_H
  53. #include <ctype.h>
  54. #endif /* _CTYPE_H */
  55.  
  56. #include <superplay/superplaybase.h>
  57.  
  58. #include <proto/exec.h>
  59. #include <proto/dos.h>
  60. #include <proto/intuition.h>
  61. #include <proto/graphics.h>
  62. #include <proto/gadtools.h>
  63. #include <proto/asl.h>
  64.  
  65. #include <proto/superplay.h>
  66. #include <proto/spobjects.h>
  67.  
  68. #include "SuperPlay_Main.h"
  69. #include "SP_SPOListSubs.h"
  70.  
  71.  
  72. /* *************************************************** */
  73. /* *                             * */
  74. /* * Version Defines                     * */
  75. /* *                             * */
  76. /* *************************************************** */
  77.  
  78. #define SP_STRDEF_VER      "\0$VER: "
  79. #define SP_STRDEF_VERSION "SuperPlay V3.1"
  80. #define SP_STRDEF_DATE      "(21.7.94)"
  81.  
  82.  
  83. /* *************************************************** */
  84. /* *                             * */
  85. /* * MACROs for Version-Tests                 * */
  86. /* *                             * */
  87. /* *************************************************** */
  88.  
  89. #define LibVer(x) ( ((struct Library *) x)->lib_Version )
  90. #define OS_VER      LibVer(SysBase)
  91.  
  92.  
  93. /* *************************************************** */
  94. /* *                             * */
  95. /* * SuperPlay.c : Functions                 * */
  96. /* *                             * */
  97. /* *************************************************** */
  98.  
  99. extern void __regargs Leave(char *errtext, APTR mlist, long code);
  100.  
  101.  
  102. /* *************************************************** */
  103. /* *                             * */
  104. /* * Additional Base References               * */
  105. /* *                             * */
  106. /* *************************************************** */
  107.  
  108. extern struct ExecBase        *SysBase;
  109. extern struct IntuitionBase *IntuitionBase;
  110. extern struct GfxBase        *GfxBase;
  111. extern struct Library        *GadToolsBase;
  112. extern struct SuperPlayBase *SuperPlayBase;
  113.  
  114.  
  115. /* *************************************************** */
  116. /* *                             * */
  117. /* * Globally Referenced Variables             * */
  118. /* *                             * */
  119. /* *************************************************** */
  120.  
  121. extern struct SPS_SPOList     *SPOList;
  122.  
  123.  
  124. /* *************************************************** */
  125. /* *                             * */
  126. /* * Compiler Stuff for BackgroundIO             * */
  127. /* *                             * */
  128. /* *************************************************** */
  129.  
  130. extern BPTR _Backstdout; /* NULL, if started from Workbench */
  131.  
  132.  
  133. /* *************************************************** */
  134. /* *                             * */
  135. /* * References for GUI Access                       * */
  136. /* *                             * */
  137. /* *************************************************** */
  138.  
  139. extern struct Screen *Scr;
  140. extern struct Window *SP_Main_Wnd;
  141.  
  142.  
  143. /* *************************************************** */
  144. /* *                             * */
  145. /* * Specific Definitions                            * */
  146. /* *                             * */
  147. /* *************************************************** */
  148.  
  149. struct SP_RememberPath
  150. {
  151.  char rp_Dir  [256]; /* dir                   */
  152.  char rp_File [256]; /* file                  */
  153.  char rp_Path [256]; /* dir + ("/"| %) + file */
  154. };
  155.  
  156.  
  157. #endif /* SUPERPLAY_H */
  158.